<?php 


namespace frontend\models;
use yii\db\ActiveRecord;
use yii\web\UploadedFile;
class User extends ActiveRecord{


    public function rules()
    {
        return [
            ['username', 'trim'],
            ['username', 'required'],
            ['email', 'trim'],
            ['email', 'required'],
            ['email', 'email'],
            ['password', 'required'],
            ['password', 'string', 'min' => 6],
        ];
    }
   public function attributeLabels()
    {
        return [
            'truename' => '真实姓名',
            'sex'=>'性别',
       
        ];
    }



}



 ?>